﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 可选参数
{
    internal class Class1
    {
        public void TestMethod(int n ,int opt1=11,int opt2=22,int opt3=33)
        {
            Console.WriteLine($"n:{n}+opt1:{opt1}+opt2:{opt2}+opt3:{opt3}={n+opt1+opt2+opt3}");
        }
    }
}
